Return

Edit Task: SetResourceDetails ResourceCost

Description

The ResourceCost attribute under EditTask defines the resource cost for the specified resource for all the task's possibilities.

Parameters

ParameterDescription
ResourceNameA string of text of the resource that is being defined within the command.
CostA positive double value representing the cost of the resource.
RateOptions are "PerAssignment" or "PerSecond".
SetupAppliesA Boolean value that determines whether cost should apply to setup times.
BreakdownAppliesA Boolean value that determines whether cost should apply to breakdown times.

Examples

Set all cost settings for all possibilities containing ResA in TaskA.

PATCH api/task/TaskA

Body:

{

"SetResourceDetails" : {

"ResourceName" : "ResA",

"ResourceCost" : {

"Cost" : "2",

"Rate" : "PerAssignment",

"SetupApplies" : "True",

"BreakdownApplies" : "False" }

}

}